<?xml version="1.0" encoding="US-ASCII"?>
<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output method="xml" version="1.0" encoding="US-ASCII" indent="yes"
              doctype-public="-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
              doctype-system="http://java.sun.com/dtd/web-app_2_3.dtd"/>

  <xsl:template match="comment()[. = 'BEGIN jxtc generated fragment']">
    <xsl:apply-templates select="following-sibling::comment()[. = 'END jxtc generated fragment'][1]/following-sibling::node()[1]"/>
  </xsl:template>

  <xsl:template match="node()">
    <xsl:copy>
      <xsl:apply-templates select="child::node()[1]"/>
    </xsl:copy>
    <xsl:apply-templates select="following-sibling::node()[1]"/>
  </xsl:template>

</xsl:stylesheet>
